.class public Lcom/instagram/android/fragment/fa;
.super Lcom/instagram/e/b/b;
.source "ReportProblemFragment.java"

# interfaces
.implements Lcom/instagram/a/b;


# instance fields
.field private a:Landroid/widget/EditText;

.field private b:Landroid/widget/Button;

.field private c:Lcom/instagram/android/fragment/fe;

.field private d:Landroid/app/Dialog;

.field private e:Z

.field private f:I


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 42
    invoke-direct {p0}, Lcom/instagram/e/b/b;-><init>()V

    .line 54
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/instagram/android/fragment/fa;->e:Z

    .line 172
    return-void
.end method

.method static synthetic a(Lcom/instagram/android/fragment/fa;Landroid/app/Dialog;)Landroid/app/Dialog;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 42
    iput-object p1, p0, Lcom/instagram/android/fragment/fa;->d:Landroid/app/Dialog;

    return-object p1
.end method

.method static synthetic a(Lcom/instagram/android/fragment/fa;)Landroid/widget/Button;
    .locals 1
    .parameter

    .prologue
    .line 42
    iget-object v0, p0, Lcom/instagram/android/fragment/fa;->b:Landroid/widget/Button;

    return-object v0
.end method

.method static synthetic a(Lcom/instagram/android/fragment/fa;Lcom/instagram/android/fragment/fe;)Lcom/instagram/android/fragment/fe;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 42
    iput-object p1, p0, Lcom/instagram/android/fragment/fa;->c:Lcom/instagram/android/fragment/fe;

    return-object p1
.end method

.method static synthetic a(Lcom/instagram/android/fragment/fa;Z)Z
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 42
    iput-boolean p1, p0, Lcom/instagram/android/fragment/fa;->e:Z

    return p1
.end method

.method static synthetic b(Lcom/instagram/android/fragment/fa;)Z
    .locals 1
    .parameter

    .prologue
    .line 42
    iget-boolean v0, p0, Lcom/instagram/android/fragment/fa;->e:Z

    return v0
.end method

.method static synthetic c(Lcom/instagram/android/fragment/fa;)Landroid/widget/EditText;
    .locals 1
    .parameter

    .prologue
    .line 42
    iget-object v0, p0, Lcom/instagram/android/fragment/fa;->a:Landroid/widget/EditText;

    return-object v0
.end method

.method static synthetic d(Lcom/instagram/android/fragment/fa;)Landroid/app/Dialog;
    .locals 1
    .parameter

    .prologue
    .line 42
    iget-object v0, p0, Lcom/instagram/android/fragment/fa;->d:Landroid/app/Dialog;

    return-object v0
.end method

.method private e(I)V
    .locals 1
    .parameter

    .prologue
    .line 274
    invoke-virtual {p0}, Lcom/instagram/android/fragment/fa;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getParent()Landroid/app/Activity;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/activity/MainTabActivity;

    invoke-virtual {v0, p1}, Lcom/instagram/android/activity/MainTabActivity;->b(I)V

    .line 275
    return-void
.end method


# virtual methods
.method public X()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    .line 135
    new-instance v0, Lcom/instagram/android/d/g/h;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/fa;->getContext()Landroid/content/Context;

    move-result-object v1

    iget-object v2, p0, Lcom/instagram/android/fragment/fa;->a:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {}, Lcom/instagram/android/g/b;->a()Lcom/facebook/a/b;

    move-result-object v3

    invoke-virtual {v3}, Lcom/facebook/a/b;->c()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v0, v1, v2, v3, v4}, Lcom/instagram/android/d/g/h;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 142
    new-instance v1, Lcom/instagram/android/fragment/fe;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/fa;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, p0, v2, v0, v4}, Lcom/instagram/android/fragment/fe;-><init>(Lcom/instagram/android/fragment/fa;Landroid/content/Context;Lcom/instagram/android/d/g/h;Lcom/instagram/android/fragment/fb;)V

    iput-object v1, p0, Lcom/instagram/android/fragment/fa;->c:Lcom/instagram/android/fragment/fe;

    .line 143
    iget-object v0, p0, Lcom/instagram/android/fragment/fa;->c:Lcom/instagram/android/fragment/fe;

    const/4 v1, 0x0

    new-array v1, v1, [Ljava/lang/Void;

    invoke-virtual {v0, v1}, Lcom/instagram/android/fragment/fe;->c([Ljava/lang/Object;)Lcom/instagram/d/a;

    .line 144
    return-void
.end method

.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 3
    .parameter
    .parameter
    .parameter

    .prologue
    .line 60
    sget v0, Lcom/facebook/ax;->fragment_report_problem:I

    const/4 v1, 0x0

    invoke-virtual {p1, v0, p2, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v1

    .line 61
    sget v0, Lcom/facebook/aw;->edittext:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/instagram/android/fragment/fa;->a:Landroid/widget/EditText;

    .line 63
    iget-object v0, p0, Lcom/instagram/android/fragment/fa;->a:Landroid/widget/EditText;

    new-instance v2, Lcom/instagram/android/fragment/fb;

    invoke-direct {v2, p0}, Lcom/instagram/android/fragment/fb;-><init>(Lcom/instagram/android/fragment/fa;)V

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 78
    sget v0, Lcom/facebook/aw;->send_button:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/instagram/android/fragment/fa;->b:Landroid/widget/Button;

    .line 79
    iget-object v0, p0, Lcom/instagram/android/fragment/fa;->b:Landroid/widget/Button;

    new-instance v2, Lcom/instagram/android/fragment/fc;

    invoke-direct {v2, p0}, Lcom/instagram/android/fragment/fc;-><init>(Lcom/instagram/android/fragment/fa;)V

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 85
    return-object v1
.end method

.method public a()Lcom/instagram/a/a;
    .locals 1

    .prologue
    .line 148
    new-instance v0, Lcom/instagram/android/fragment/fd;

    invoke-direct {v0, p0}, Lcom/instagram/android/fragment/fd;-><init>(Lcom/instagram/android/fragment/fa;)V

    return-object v0
.end method

.method public d_()Ljava/lang/String;
    .locals 1

    .prologue
    .line 279
    const-string v0, "report_problem"

    return-object v0
.end method

.method public g_()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 90
    invoke-super {p0}, Lcom/instagram/e/b/b;->g_()V

    .line 91
    iput-object v2, p0, Lcom/instagram/android/fragment/fa;->a:Landroid/widget/EditText;

    .line 92
    iput-object v2, p0, Lcom/instagram/android/fragment/fa;->b:Landroid/widget/Button;

    .line 94
    iget-object v0, p0, Lcom/instagram/android/fragment/fa;->c:Lcom/instagram/android/fragment/fe;

    if-eqz v0, :cond_0

    .line 96
    iget-object v0, p0, Lcom/instagram/android/fragment/fa;->c:Lcom/instagram/android/fragment/fe;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/instagram/android/fragment/fe;->a(Z)Z

    .line 97
    iput-object v2, p0, Lcom/instagram/android/fragment/fa;->c:Lcom/instagram/android/fragment/fe;

    .line 99
    :cond_0
    return-void
.end method

.method public w()V
    .locals 2

    .prologue
    .line 124
    invoke-super {p0}, Lcom/instagram/e/b/b;->w()V

    .line 125
    invoke-virtual {p0}, Lcom/instagram/android/fragment/fa;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getRequestedOrientation()I

    move-result v0

    iput v0, p0, Lcom/instagram/android/fragment/fa;->f:I

    .line 126
    invoke-virtual {p0}, Lcom/instagram/android/fragment/fa;->j()Landroid/support/v4/app/j;

    move-result-object v0

    const/4 v1, -0x1

    invoke-virtual {v0, v1}, Landroid/support/v4/app/j;->setRequestedOrientation(I)V

    .line 129
    invoke-virtual {p0}, Lcom/instagram/android/fragment/fa;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getParent()Landroid/app/Activity;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v1, 0x10

    invoke-virtual {v0, v1}, Landroid/view/Window;->setSoftInputMode(I)V

    .line 131
    const/16 v0, 0x8

    invoke-direct {p0, v0}, Lcom/instagram/android/fragment/fa;->e(I)V

    .line 132
    return-void
.end method

.method public x()V
    .locals 2

    .prologue
    .line 103
    invoke-super {p0}, Lcom/instagram/e/b/b;->x()V

    .line 105
    invoke-virtual {p0}, Lcom/instagram/android/fragment/fa;->j()Landroid/support/v4/app/j;

    move-result-object v0

    iget v1, p0, Lcom/instagram/android/fragment/fa;->f:I

    invoke-virtual {v0, v1}, Landroid/support/v4/app/j;->setRequestedOrientation(I)V

    .line 108
    invoke-virtual {p0}, Lcom/instagram/android/fragment/fa;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getParent()Landroid/app/Activity;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v1, 0x30

    invoke-virtual {v0, v1}, Landroid/view/Window;->setSoftInputMode(I)V

    .line 112
    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lcom/instagram/android/fragment/fa;->e(I)V

    .line 114
    invoke-virtual {p0}, Lcom/instagram/android/fragment/fa;->getContext()Landroid/content/Context;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/fragment/fa;->a:Landroid/widget/EditText;

    invoke-static {v0, v1}, Lcom/instagram/n/k;->a(Landroid/content/Context;Landroid/view/View;)V

    .line 116
    iget-object v0, p0, Lcom/instagram/android/fragment/fa;->d:Landroid/app/Dialog;

    if-eqz v0, :cond_0

    .line 117
    iget-object v0, p0, Lcom/instagram/android/fragment/fa;->d:Landroid/app/Dialog;

    invoke-virtual {v0}, Landroid/app/Dialog;->dismiss()V

    .line 118
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/instagram/android/fragment/fa;->d:Landroid/app/Dialog;

    .line 120
    :cond_0
    return-void
.end method
